package com.mordenxshop.common.constant;

import org.w3c.dom.Attr;

public class ProductConstant {
    //属性类型常量
    public enum AttrEnum{
        ATTR_TYPE_BASE(1,"基本属性"),ATTR_TYPE_SALE(0,"销售属性");
        private int code;

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }

        private String message;
        AttrEnum(int code,String message){
            this.code=code;
            this.message=message;
        }
    }
    //spu信息发布状态
    public enum SpuPublishStatusEnum{
        NEW_CREATED(0,"新建"),PUBLISHED(1,"上架"),CANCEL_PUBLISH(2,"下架");
        private int code;

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }

        private String message;
        SpuPublishStatusEnum(int code,String message){
            this.code=code;
            this.message=message;
        }
    }
}
